package com.ktjy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ktjy.mapper.SupplierMapper;
import com.ktjy.pojo.Supplier;
import com.ktjy.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper,Supplier> implements SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;
    //查询供应商
    @Override
    public List<Supplier> getSupplierList(String querySupName, String querySupCode, Integer pageIndex, int pageSize) {
        return supplierMapper.getSupplierList(querySupName,querySupCode,pageIndex,pageSize);
    }

    //查询供应商总数
    @Override
    public int getUserCount(String querySupName, String querySupCode) {
        return supplierMapper.getUserCount(querySupName,querySupCode);
    }
}
